<?php
$soluong = $_POST['soluong'];
//print_r(//$productId);
$id = $_GET['id'];
if(isset($_SESSION['hoiCart'][$id])==true)
{
$_SESSION['hoiCart'][$id] = $_SESSION['hoiCart'][$id] + $soluong;
}
else
{
$_SESSION['hoiCart'][$id] = $soluong;
}
echo "MUA HANG THANH CONG<br>";
echo "<a href='index.php?content=product'>Mua tiep</a> | <a href='index.php?page=view'>Gio hang</a><br>";
//var_dump($_SESSION);
?>